#ifndef __KEY_H
#define __KEY_H

#include <stdio.h>
#include <wiringPi.h>
#include <softPwm.h>

#define KEY1 24
#define KEY2 25
#define KEY3 0
#define KEY4 1

#define KV_MOD  1
#define KV_ERA  2
#define KV_ADD  3
#define KV_SUB  4

#define uchar unsigned char

void key_init(void);
void keyExit_init(void);
int key_scan(int mode);

#endif //__KEY_H
